package cn.sumpu.app.guoguojie.biz;

import cn.sumpu.app.guoguojie.domain.LuckRank;
import cn.sumpu.app.guoguojie.domain.LuckTime;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;
import cn.sumpu.app.guoguojie.util.PageModel;

public interface LuckyBiz {
    public void saveLuckTime(LuckTime luckTime) throws AppBusinessException;

    public void deleteLuckTime(String id) throws AppBusinessException;

    public void timeCheckLuckTime() throws AppBusinessException;

    public boolean checkLuckTime(String luckTimeId) throws AppBusinessException;

    public boolean checkRankNum(String luckTimeId, Integer rankNum) throws AppBusinessException;

    public Integer getMemberRank(String luckTimeId, Integer rankNum) throws AppBusinessException;

    public LuckRank getMemberRank(String luckTimeId, String memberId) throws AppBusinessException;

    public LuckRank getRankNum(String memberId) throws AppBusinessException;

    public LuckTime getLuckTimeById(String id) throws AppBusinessException;

    public LuckTime getStartLuckTime() throws AppBusinessException;

    public LuckTime getLastLuckTime() throws AppBusinessException;

    public PageModel getLuckTime(Integer page, Integer pageSize, String title, String status) throws AppBusinessException;

    public PageModel getLuckRank(Integer page, Integer pageSize, String luckid) throws AppBusinessException;

    public PageModel getHistoryLuckRank(Integer page, Integer pageSize, String luckid) throws AppBusinessException;

}
